﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PineLake.Drmwe.Encrypts.DES
{
    /// <summary>
    /// DES加密/解密
    /// </summary>
    public interface IDES
    {
        /// <summary>
        /// 加密数据,启用默认密匙.
        /// </summary>
        /// <param name="EncryptStr">加密字符</param>
        /// <returns></returns>
        string Encrypt(string EncryptStr);
        /// <summary> 
        /// 加密数据,启用自定义密匙.
        /// </summary> 
        /// <param name="EncryptStr">加密数据</param> 
        /// <param name="sKey">自定义密匙</param> 
        /// <returns></returns>
        /// 
        string Encrypt(string EncryptStr, string sKey);

        /// <summary>
        /// 解密数据,启用默认密匙.
        /// </summary>
        /// <param name="DecryptStr">解密数据</param>
        /// <returns></returns>
        /// 
        string Decrypt(string DecryptStr);

        /// <summary> 
        /// 解密数据,启用自定义密匙. 
        /// </summary> 
        /// <param name="DecryptStr">解密数据</param> 
        /// <param name="sKey">自定义密匙</param> 
        /// <returns></returns> 
        /// 
        string Decrypt(string DecryptStr, string sKey);
    }
}
